<%@page import="com.crm.util.Constants,java.util.List"%>
<%@page import="com.crm.beans.ExecutiveBusinessVO,com.crm.dao.OpportunityDAO,com.crm.dao.BusinessDAO,com.crm.dao.ExecutivesDAO,com.crm.entity.Opportunity,com.crm.entity.Executives,com.crm.entity.Business" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<div id="slideopen">
<div  class="slide-main" >
  <div class="slide-tophed">Summary</div>
  
  
  <div class="slide-text-main">
    <div class="slide-text-hed">Business Summary</div>
	
    <div class="slide-text-content">
      <div class="slide-box-main"><div class="slide-box-hed">Pending Enquiries</div>
        <div class="slide-box"><%=request.getAttribute("pendEnq")%></div>
      </div>
	  <div class="slide-box-main"><div class="slide-box-hed">Pending Quotations</div>
        <div class="slide-box"><%=request.getAttribute("pendQuot")%></div>
      </div>
	  <div class="slide-box-main"><div class="slide-box-hed">Pending Orders</div>
        <div class="slide-box"><%=request.getAttribute("pendOrders")%></div>
		
		
      </div>
    </div>
	<div class="slide-text-content">
      <div class="slide-box-main"><div class="slide-box-hed">Pending Invoices</div>
        <div class="slide-box"><%=request.getAttribute("pendInv") %></div>
      </div>
	  <div class="slide-box-main"><div class="slide-box-hed">Enqries In Current </div>
        <div class="slide-box"><%=request.getAttribute("currentEnqs")%></div>
      </div>
      
	  <div class="slide-box-main"><div class="slide-box-hed">Pending</div>
        <div class="slide-box"></div>
		
		
      </div>
    </div>
	
	<div class="slide-text-content">
      <div class="slide-box-main"><div class="slide-box-hed">Orders/Month</div>
        <div class="slide-box"></div>
      </div>
     <div class="slide-box-main"><div class="slide-box-hed">Total Turnover</div>
        <div class="slide-box"><%=request.getAttribute("totalBusiness") %></div>
      </div>
	  <div class="slide-box-main"><div class="slide-box-hed">Month Turnover</div>
        <div class="slide-box"><%
        if(request.getAttribute("monthTO")!=null){
        	out.println(request.getAttribute("monthTO"));
        }else{
        	out.println(0);
        }
         %></div>
		
		
      </div>
    </div>
	<div class="slide-text-hed">Executive Details  </div>
	<div class="slide-text-content">
	<table width="423" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="138" height="30" align="center" valign="middle" bgcolor="#fce1c2">Name </td>
          <td width="1" align="center" valign="middle" bgcolor="#d3ad8f"></td>
          <td width="146" align="center" valign="middle" bgcolor="#fce1c2">No of orders</td>
          <td width="1" align="center" valign="middle" bgcolor="#d3ad8f"></td>
          <td width="146" align="center" valign="middle" bgcolor="#fce1c2">Value of order </td>
        </tr>
        <%
        List<ExecutiveBusinessVO> lexecBus=(List<ExecutiveBusinessVO>)request.getAttribute("execBus");
        for(int i=0;i<lexecBus.size();i++){
        %>
        <tr>
          <td bgcolor="#feefdd" align="center"><%=lexecBus.get(i).getExecutiveName()%></td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd" align="center"><%=lexecBus.get(i).getNoOfOrders()%></td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd"><%=Math.round(lexecBus.get(i).getTurnOver())%></td>
        </tr>
        <%
        }
        %>
        <tr>
          <td bgcolor="#feefdd">&nbsp;</td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd">&nbsp;</td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd">&nbsp;</td>
        </tr>
        <tr>
          <td bgcolor="#feefdd">&nbsp;</td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd">&nbsp;</td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd">&nbsp;</td>
        </tr>
        <tr>
          <td bgcolor="#feefdd">&nbsp;</td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd">&nbsp;</td>
          <td width="1" bgcolor="#f5e2cd"></td>
          <td bgcolor="#feefdd">&nbsp;</td>
        </tr>
      </table>
	</div>
  </div>
</div>
<div id="slidebutton" class="slide-but">
<a href="#"><img src="<%=application.getContextPath() %>/images/but.png" border="0" onclick="javascript:hideDiv();"/></a>
</div>
</div>
</body>
</html>